<form action="" method="post">
	<table style="padding-top:30px;">
	<?php // var_dump($options['@insert_list'] ); die();?>
		<? foreach ($fields as $key ): ?>
		<? if ($key == 'id') :?>
			<? continue; ?>
		<? endif;?>
		<tr>
			<td>
				<b>
					<? if (!empty($options[$key]['field_alias'])): ?>
					<?=$options[$key]['field_alias']?>
					<? else: ?>
					<?=$key?>
					<? endif; ?>:
				</b>&nbsp;&nbsp;&nbsp;
			</td>
			<td>
				<? $value = (!empty($element[$key]))?$element[$key]:'' ?>
				<? if ($options[$key]['edit_method'] != 'None') : ?>
				<? $this->addSubview(
					'Curd_FormElement_'.ucfirst($options[$key]['edit_method']),
					array('options' => $options, 'key' => $key, 'value' => $value)
					);
				?>
				<? endif; ?>
			</td>
		</tr>
		<? endforeach; ?>
		<tr>
			<td></td>
			<td><input type="submit" value="<?=LANG_CREATE?>"></td>
		</tr>
	</table>
</form>